home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0129-Global Printing of -Oct89 < prev    next >
Encoding:
Text File  |  1989-10-20  |  1.2 KB  |  35 lines  |  [TEXT/GEOL]

  1. Item    1225496                         18-Oct-89        16:28
  2.  
  3. From:   D2086                           Efficient Field Svc, C Faith,PRT
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    Global Printing of Windows
  8.  
  9. I have an application that I use to prototype view resources and other user
  10. interface issues.
  11.  
  12. I want to be able to have a menu item that Prints one copy of the front window.
  13.  
  14. I am running into trouble.
  15.  
  16. I have global PrindHandler that I want to merely assign to each window on the
  17. fly.  I hate to have to create a new printhandler etc for every prototype.
  18. What do I have to do to get this to work?
  19.  
  20. I currently call AttachPrintHandler to attach gPrintHandler to the Active
  21. Window and also set the fView field of the PrintHandler to the Active Window.
  22.  
  23. In addition I have modified the PrintCommand that PrintOne creates to set the
  24. fPrintHandler field of the TWindow back to NIL so that it does not get freed
  25. with the window.
  26.  
  27. I keep getting system error id 12 when I try printing!  It goes far enough that
  28. after every bomb PrintMonitor tells me that what I tried to print was corrupt.
  29. I must be forgetting to initialize something or to call a needed method.
  30.  
  31. Any ideas?
  32.  
  33. - Curtis Faith
  34.  
  35.